package com.huaru.formboot.form.entity.Dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;


/**
 * <p>
 * 表单数据表
 * </p>
 *
 * @author wz
 * @since 2021-04-15
 */
@ApiModel(description = "表单数据实体")
public class TableData  implements Serializable {

    private static final long serialVersionUID = 1404289669042037623L;

    @ApiModelProperty(value = "表单数据id",example = "123")
    private String tableId;

    @ApiModelProperty(value = "表单数据父id",example = "456")
    private String tableParentId;
    @ApiModelProperty(value = "采集表单类型",example = "1")
    private String tableType;

    @ApiModelProperty(value = "采集表单编号",example = "123")
    private String tableNumber;

    @ApiModelProperty(value = "表单采集者",example = "某人")
    private String tableCollector;

    @ApiModelProperty(value = "表单数据json",example = "{}")
    private String tableDataJson;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(name = "子节点")
    private List<TableData> children;
    public TableData() {
    }

    public TableData(String tableId, String tableParentId, String tableType, String tableNumber, String tableCollector, String tableDataJson, LocalDateTime createTime, LocalDateTime updateTime) {
        this.tableId = tableId;
        this.tableParentId = tableParentId;
        this.tableType = tableType;
        this.tableNumber = tableNumber;
        this.tableCollector = tableCollector;
        this.tableDataJson = tableDataJson;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public List<TableData> getChildren() {
        return children;
    }

    public void setChildren(List<TableData> children) {
        this.children = children;
    }

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public String getTableParentId() {
        return tableParentId;
    }

    public void setTableParentId(String tableParentId) {
        this.tableParentId = tableParentId;
    }

    public String getTableType() {
        return tableType;
    }

    public void setTableType(String tableType) {
        this.tableType = tableType;
    }

    public String getTableNumber() {
        return tableNumber;
    }

    public void setTableNumber(String tableNumber) {
        this.tableNumber = tableNumber;
    }

    public String getTableCollector() {
        return tableCollector;
    }

    public void setTableCollector(String tableCollector) {
        this.tableCollector = tableCollector;
    }

    public String getTableDataJson() {
        return tableDataJson;
    }

    public void setTableDataJson(String tableDataJson) {
        this.tableDataJson = tableDataJson;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
